<?php
/**
 * 订单状态列表
 */
function orderStatus($id = "", $color = false) {
	$arr = [
		1 => "Pending",
		"Approved",
		"Declined",
		"Pending Refund",
		"Refunded",
	];
	$arr_color = [
		1 => "Pending",
		"<font color=green>Approved</font>",
		"<font color=red>Declined</font>",
		"<font color=blue>Pending Refund</font>",
		"<font color=orange>Refunded</font>",
	];
	if ($id != "") {
		return $color ? $arr_color[$id] : $arr[$id];
	} else {
		return $color ? $arr_color : $arr;
	}
}